package main.java.adapter.object_adapter;


/**
 * 对象适配模式
 */
public class Demo {
    public static void main(String[] args) {
        Computer computer = new Computer();
        String s = computer.readSD(new SDCardImpl());
        System.out.println(s);
        System.out.println("==========================");

        String s1 = computer.readSD(new SDAdapterTF(new TFCardImpl()));
        System.out.println("s1 ======" + s1);
    }
}
